export default [
  {
    path: "/",
    name: "HomeView",
    redirect: "/login",
    component: () => import("../../views/HomeView/HomeView.vue"),
    children: [
      {
        path: "Home",
        name: "Home",
        component: () => import("../../views/Home/Homes.vue"),
      },
      {
        path: "askDoctor",
        name: "askDoctor",
        component: () => import("../../views/Doctors/askDoctor.vue"),
        meta: {
          needLogin: true,
        },
      },
      {
        path: "New",
        name: "New",
        component: () => import("../../views/News/New.vue"),
        meta: {
          needLogin: true,
        },
      },
      {
        path: "Mine",
        name: "Mine",
        component: () => import("../../views/Mine/Mine.vue"),
        meta: {
          needLogin: true,
        },
      },
    ],
  },
  {
    path: "/HomeView",
    redirect: "/",
  },
  {
    path: "/Home/toAsk",
    name: "toAsk",
    component: () => import("../../views/Home/homes/toAsk.vue"),
    meta: {
      needLogin: true,
    },
  },
  {
    path: "/Home/pubAsk",
    name: "pubAsk",
    component: () => import("../../views/Home/homes/pubAsk.vue"),
  },
  {
    path: "/Home/keepDiary",
    name: "keepDiary",
    component: () => import("../../views/Home/homes/keepDiary.vue"),
    meta: {
      needLogin: true,
    },
  },
  {
    path: "/Home/diaryContent",
    name: "diaryContent",
    component: () => import("../../views/Home/homes/diaryContent.vue"),
  },
  {
    path: "/Home/Cart",
    name: "Cart",
    component: () => import("../../views/Home/homes/Cart.vue"),
    meta: {
      needLogin: true,
    },
  },
  {
    path: "/Home/facialProfile",
    name: "facialProfile",
    component: () => import("../../views/Home/homes/facialProfile.vue"),
  },
  {
    path: "/Home/facialDetail",
    name: "facialDetail",
    component: () =>
      import("../../views/Home/homes/homesThree/facialDetail.vue"),
  },
  {
    path: "/Home/coupon",
    name: "coupon",
    component: () => import("../../views/Home/homes/homesThree/coupon.vue"),
  },
  {
    path: "/Home/doctorHospital",
    name: "doctorHospital",
    component: () => import("../../views/Home/homes/doctorHospital.vue"),
    //路由元信息 isShow 判断页面底部导航是否需要隐藏
  },
  {
    path: "/Home/medicalBeauty",
    name: "medicalBeauty",
    component: () => import("../../views/Home/homes/medicalBeauty.vue"),
  },
  {
    path: "/Home/newPeople",
    name: "newPeople",
    component: () => import("../../views/Home/homes/newPeople.vue"),
    meta: {
      needLogin: true,
    },
  },
  {
    path: "/Home/projectHiring",
    name: "projectHiring",
    component: () => import("../../views/Home/homes/projectHiring.vue"),
  },
  {
    path: "/Home/redPacket",
    name: "redPacket",
    component: () => import("../../views/Home/homes/redPacket.vue"),
    meta: {
      needLogin: true,
    },
  },
  {
    path: "/Home/searchCity",
    name: "searchCity",
    component: () => import("../../views/Home/homes/searchCity.vue"),
  },
  {
    path: "/Home/searchProject",
    name: "searchProject",
    component: () => import("../../views/Home/homes/searchProject.vue"),
  },
  {
    path: "/Home/yanjiuyuan",
    name: "yanjiuyuan",
    component: () => import("../../views/Home/homes/yanjiuyuan.vue"),
  },
  //Home页面的里 需要跳转的页面 结束

  //Home的三级跳转页面 开始
  {
    path: "/Home/redPacket/redRule",
    name: "redRule",
    component: () => import("../../views/Home/homes/homesThree/redRule.vue"),
  },
  {
    path: "/Home/yanjiuyuan/hotTopic",
    name: "hotTopic",
    component: () => import("../../views/Home/homes/homesThree/hotTopic.vue"),
  },
  {
    path: "/Home/projectHiring/toView",
    name: "toView",
    component: () => import("../../views/Home/homes/homesThree/toView.vue"),
  },
];
